import { ActiveBaseIcon } from "../activity/icon/ActiveBaseIcon";
import { ResFileConst } from "../../resource/ResFileConst";
import { DataEvent } from "../../events/DataEvent";
import { EventName } from "../../mvc/EventName";
import { EffectManager } from "../../manager/EffectManager";
import { FilterConst } from "../../../component/gconst/FilterConst";
//class ConsumeCountIcon
    
    export  class ConsumeCountIcon extends ActiveBaseIcon
    {
        constructor(arg1: string=null)
        {
            super(arg1);
            arg1 = ResFileConst.ConsumeCount;
            return;
        }

        protected /* override */ onMouseClickHandler(arg1: Object /* flash.events.MouseEvent */): void
        {
            dispatchEvent(new DataEvent(EventName.ConsumeCountIconClick));
            return;
        }

        public setFlashEffect(arg1: Boolean): void
        {
            if (arg1) 
            {
                EffectManager.glowFilterReg(this, [FilterConst.topIconFlashFilter]);
            }
            else 
            {
                EffectManager.glowFilterUnReg(this);
            }
            return;
        }
    }
